//
//  LYIntroduceModel.h
//  LYLiveApp
//
//  Created by QD on 16/9/2.
//  Copyright © 2016年 览益信息科技. All rights reserved.
//

#import "LYBaseService.h"
#import "LYTeacherModel.h"
@interface LYIntroduceModel : NSObject
@property (nonatomic,strong) NSNumber *id;
@property (nonatomic,strong) NSNumber *vhall;
@property (nonatomic,strong) NSString *name;
@property (nonatomic,strong) NSString *intro;
@property (nonatomic,strong) NSString *announce;
@property (nonatomic,strong) NSNumber *living;
@property (nonatomic,strong) NSNumber *is_zan;
@property (nonatomic,strong) NSNumber *online_num;
@property (nonatomic,strong) NSNumber *zan_num;
@property (nonatomic,strong) NSString *offline_img_url;
@property (nonatomic,strong) NSString *bigCarUrl;
@property (nonatomic,strong) NSString *bigCardName;
@property (nonatomic,strong) NSString *url;

@end

@interface LYRoomListModel : NSObject
@property(nonatomic,strong) NSNumber *actId;
@property(nonatomic,strong) NSString *actName;
@property(nonatomic,strong) NSNumber *actNum;
@property(nonatomic,strong) NSNumber *actStatus;      // 0 未播  1 直播中  3 已播放
@property(nonatomic,strong) NSNumber *actType;     //  2 片花
@property(nonatomic,strong) NSString *actTeacher;
@property(nonatomic,strong) NSString *actTime;
@property(nonatomic,strong) NSString *endTime;
@property(nonatomic,strong) NSString *foreshow;
@property(nonatomic,strong) NSNumber *imStatus;
@property(nonatomic,strong) NSNumber *isSub;
@property(nonatomic,strong) NSString *startTime;
@property(nonatomic,strong) NSMutableArray *teachers;
@property(nonatomic,strong) NSString *vhallId;
@property(nonatomic,strong) NSString *weekday;
@property(nonatomic,assign) BOOL isExpand;
@property(nonatomic,assign) BOOL isPlaybacking;  //回放中
@property(nonatomic,assign) BOOL isPlayLiving;   //直播中
+ (CGFloat)returnRowHeightWithModel:(LYRoomListModel *)model;
@end


@interface LYArticleModel : NSObject
@property (nonatomic,strong) NSString *article_content;
@property (nonatomic,strong) NSString *article_link;
@property (nonatomic,strong) NSString *article_pic;
@property (nonatomic,strong) NSString *article_title;
@property (nonatomic,strong) NSString *ctime;
+ (CGFloat)returnRowHeightWithModel:(LYArticleModel *)model;

@end


@interface LYTimeTableTeacherModel : LYTeacherModel
@property (nonatomic,assign) CGFloat height;
@property (nonatomic,assign,readonly) CGFloat styleHeight;
@end


/**
 时刻表播放
 */
@interface LYTimePlayItemModel : NSObject
@property (nonatomic,copy) NSString *act_id; /** 节目id */
@property (nonatomic,copy) NSString *act_time; /** 节目时间 */
@property (nonatomic,copy) NSString *end_time; /** 结束时间 */
@property (nonatomic,copy) NSString *act_name;/** 节目名 */
@property (nonatomic,copy) NSString *foreshow; /** 预告 */
@property (nonatomic,copy) NSString *start_time; /** 开始时间 */
@property (nonatomic,strong) NSNumber *im_status; /** 是否加入战队0：关闭1：开启 */
@property (nonatomic,strong) NSNumber *act_status;/** 状态0关闭1开启 */
@property (nonatomic,copy) NSString *act_num;/** 节目顺序 */
@property (nonatomic,strong) NSArray *teachers; /** 老师列表 */

@property (nonatomic,assign) CGFloat height;

@property (nonatomic,assign,readonly) BOOL isLive;
@property (nonatomic,assign,readonly) BOOL isIMOpen; /** 是否加入战队 */

@property (nonatomic,assign,readonly) CGFloat descAttrHeight;
@property (nonatomic,strong,readonly) NSMutableAttributedString * descAttrText;

+(CGFloat)returnHeightWithModel:(LYTimePlayItemModel *)model;

@end




/**
 时刻表栏目
 */
@interface LYTimeModel : NSObject
@property (nonatomic,strong) NSString *dump_url;
@property (nonatomic,strong) NSNumber *id;
@property (nonatomic,strong) NSString *img_url;
@property (nonatomic,assign) CGFloat height;
/** 时刻表底部声明 */
@property (nonatomic,copy) NSString *remark;
/** 已经播放完的栏目列表 */
@property (nonatomic,strong) NSArray * playedItemList;
/** 正在播放的栏目列表 */
@property (nonatomic,strong) NSArray * playingItemList;
/** 将要播放的栏目列表 */
@property (nonatomic,strong) NSArray * shouldPlayItemList;
/** 播放栏目组，内包含已经播完、正在播放、还未播放的3个节目组 */
@property (nonatomic,strong) NSMutableArray * playChannels;
- (void)prepareHeight;

@end

